@echo off

set "ARMCLANG_PATH=%USERPROFILE%\AppData\Local\Keil_v5\ARM\ARMCLANG\bin"
set "ARMCLANG_PATH=%ARMCLANG_PATH:\=/%"

echo "ARMCLANG_PATH: %ARMCLANG_PATH%"

REM Clean up previous build directory
del build /Q /S >NUL 2>&1

REM Configure the build with CMake
cmake -DCMAKE_BUILD_TYPE:STRING=Debug ^
-G Ninja -B build -S .

echo Compile in progress...

cmake --build build --clean-first

echo Done!
